package com.csxh.modal;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;


@Entity
@Table(name="t_product")
public class Product implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -4805978578464698022L;
	private String name;
	private Integer id;
	
	@Column(length=50)
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	@Id
	@GenericGenerator(strategy="increment",name="xxx" )
	@GeneratedValue(generator="xxx")
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	
	
	

}
